Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODPart


RemoveEmbeddedFrame

The RemoveEmbeddedFrame method should remove the specified embedded frame from this part's content.

void RemoveEmbeddedFrame (in ODFrame embeddedFrame);
embeddedFrame
A reference to an embedded frame of this part.
DISCUSSION
An embedded part calls this part's RemoveEmbeddedFrame method when it no longer wants to display itself in the specified frame.

If your part supports embedding, your part's RemoveEmbeddedFrame method should respond to a request to remove an embedded frame. Your part's RemoveEmbeddedFrame method should only remove frames that were added by calls to your part's RequestEmbeddedFrame method.

OVERRIDING
When you subclass ODPart, you can override this method. Your override method must not call its inherited method; that is, your override method must implement this method's functionality completely. This method needs to be implemented only by container parts.

EXCEPTIONS
kODErrCannotEmbed
This part does not support embedding.
kODErrInvalidFrame
The specified frame is not an embedded frame of this part.
SEE ALSO
The ODPart::RequestEmbeddedFrame method (page 542).
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Removing a Display Frame" on page 112 in OpenDoc Programmer's Guide.
"Removing an Embedded Frame" on page 121 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help